def count(f):
    index = 0
    def inner(*args,**kwargs):
        nonlocal index
        index += 1
        res = f(*args,**kwargs)
        print("第%d次执行"%index)
        return res
    return inner

@count
def func():
    print("lifeibiao is a good man")

@count
def func():
    print("lifeibiao is a cool man")
func()
func()
func()
func()